package com.shyroke.daydayzhuandao.respository;

import com.shyroke.daydayzhuanapi.entity.SpiderProjectEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SpiderProjectRepository extends BaseRepository<SpiderProjectEntity,Integer>{
    @Query("select s.source from SpiderProjectEntity s group by s.source")
    List<String> getSource();

    List<SpiderProjectEntity> findByTitleIn(List<String> titleList);
}
